# coding: utf-8
from django.conf.urls import url, include
from .views import LoginViews, RegisterView, UserInfoView, setNameView, getCanView
from treehole.views import NotLogin


urlpatterns = [
    # 未登录提示
    url('^login', NotLogin.as_view(), name="not_login"),
    # 登录
    url('^getLogin.json', LoginViews.as_view(), name="login"),
    # 注册
    url('^getRegister.json', RegisterView.as_view(), name="register"),
    # 获取用户全部罐头
    url('^getCan.json', getCanView.as_view(), name="get_can"),
    # 获取用户信息
    url('^getUserInfo.json', UserInfoView.as_view(), name="user_info"),
    # 修改用户昵称
    url('^setName.json', setNameView.as_view(), name="set_name"),
]
